{include file="public/header" /}
<body>
<style>
    .cion{
        display: inline-block;
        width: 120px;
    }
</style>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;" autocomplete="off">
            -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;" autocomplete="off">
            <input type="text" class="input-text" style="width:150px" placeholder="订单号" value="{:input('order_id')}" name="order_id">
            <input type="text" class="input-text" style="width:150px" placeholder="卡号" value="{:input('card')}" name="card">
            <span class="select-box" style="width: 100px;">
                <select name="shop_id" class="select">
                <option value="0">所有商户(含代理)</option>
                {foreach $shops as $v}
                    {if isset($_GET['shop_id']) && $v.id ==  $_GET['shop_id']}
                    <option value="{$v.id}" selected>{$v.nickname}</option>
                    {else/}
                    <option value="{$v.id}">{$v.nickname}</option>
                    {/if}
                {/foreach}
            </select>
            </span>

            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
         <span class="l">
<!--            <a href="javascript:;" onclick="layopen('新增','{:url('goodEdit')}',800,600)" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i>新增</a>-->
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="12">提成列表</th>
            </tr>
            <tr class="text-c">
                <th width="50">标识</th>
                <th width="100">代理商（商户）</th>
                <th width="50">提成比例</th>
                <th width="50">商品金额</th>
                <th width="50">提成金额</th>
                <th width="100">卡号</th>
                <th width="100">订单号</th>
                <th width="100">提成发放时间</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td class="text-l">{$v.id}</td>
                <td class="text-l">{$v.shop_id}：{$v.shop}</td>
                <td class="text-l">{$v.bouns}</td>
                <td class="text-l">{$v.t_money}</td>
                <td class="text-l">{$v.money}</td>
                <td class="text-l">{$v.card}</td>
                <td class="text-l">{$v.order_id}</td>
                <td class="text-l">{:date('Y-m-d H:i:s',$v['time'])}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}

<script type="text/javascript">

</script>